<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui"
	xmlns:c="http://java.sun.com/jsp/jstl/core">
<ui:composition template="/template/padrao.xhtml">
	<ui:define name="breadcrumb">
		<c:set var="breadcrumbText" value="Principal"/>
	</ui:define>
	<ui:define name="conteudo">
		<h:messages styleClass="errorMessage" globalOnly="true" />
		<h:messages styleClass="errorMessage" globalOnly="true" />
		<p:panelGrid layout="grid" columns="2" styleClass="filtro" rendered="#{!segurancaMBean.logado}">
			<p:outputLabel value="Usuário:" styleClass="label"/>
			<p:inputText value="#{principalMBean.usuario}"/>
			<p:outputLabel value="Senha: " styleClass="label"/>
			<p:password value="#{principalMBean.senha}"/>
			<p:commandButton action="#{principalMBean.login}" value="Login" update="@form"/>
		</p:panelGrid>
		<p:panelGrid layout="grid" columns="1" styleClass="filtro" rendered="#{segurancaMBean.logado}">
			<p:commandButton action="#{principalMBean.logout}" value="Logout" update="@form"/>
		</p:panelGrid>
	</ui:define>
</ui:composition>
</html>